<template>
  <div class="nav-header">
    <div class="header-wrap">
      <div class="header-main">
        <header-icon />
        <header-flag />
        <search-input />
        <net-tag text="创作者中心" />
        <div class="login-btn">登录</div>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

import HeaderIcon from './header-icon.vue'
import HeaderFlag from './header-flag.vue'

import SearchInput from '@/components/input'
import NetTag from '@/components/tag'

export default defineComponent({
  components: {
    NetTag,
    HeaderIcon,
    HeaderFlag,
    SearchInput
  },
  setup() {
    return {}
  }
})
</script>

<style scoped lang="less">
.header-wrap {
  width: 100%;
  height: 58px;
  background-color: #2a2a2a;
  font-family: Arial, Helvetica, sans-serif;
  .header-main {
    width:  70%;
    height: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;

    .net-tag {
      margin-left: 20px;
      font-weight: lighter;
    }

    .login-btn {
      margin-left: 20px;
      color: #787878;
      font-size: 12px;
      font-weight: lighter;
      &:hover {
        cursor: pointer;
        text-decoration: underline;
      }
    }
  }
}
</style>
